package com.bbm.communitysystem.mabaits;

import com.bbm.communitysystem.domain.bo.NewsBo;
import com.bbm.communitysystem.service.INewsService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@Slf4j
@SpringBootTest
public class News {

    @Autowired
    private INewsService iNewsService;

    @Test
    public void AddNewsTest() {
        NewsBo newsBo = new NewsBo();
        newsBo.setId(1);
        newsBo.setNewsContent("1111111111111111111111");
        newsBo.setNewsTime("----");
        newsBo.setStatus(3);
        newsBo.setNewsAuthor(1 + "");

        iNewsService.createNews(newsBo);

    }

}
